
// Info.java

package com.ruoyi.service.entity.order;

@lombok.Data
public class PCOrderDetailInfo {

    private PCServiceItems serviceItems;
    //private Long itemsPay;
    private PCPackageItems packageItems;
    private PCTaxiItems taxiItems;
    private PCOtherItems otherItems;

    private Long totalAmount;
    private Long totalActual;
    private Long totalDifference;

    //private Boolean fromNur;

    public void init(PCActual actual, PCPrepaid prePaid, PCDifference difference) {
        this.serviceItems = actual.getServiceItems();
        this.packageItems = actual.getPackageItems();
        this.taxiItems = actual.getTaxiItems();
        this.otherItems = actual.getOtherItems();

        this.totalAmount = prePaid.getTotalAmount();
        this.totalActual = actual.getTotalAmount();
        this.totalDifference = difference.getAmount();
    }
}